Skip to content

fix: 4.1.0 release-candidate review findings - #129

Merged
cmp-202 merged 1 commit into
masterfrom
fix/release-review-findings
Nov 23, 2026
Merged

cmp-202 merged 1 commit into
masterfrom
fix/release-review-findings

Conversation

@cmp-202

@cmp-202 cmp-202 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to the 4.1.0 release PR #128. Applies the external release-candidate review findings and the follow-up review fixes:

  • Clear the graceful-close timer when advancing to the next primary host.
  • Reapply debug/verbose overrides when an ancestor context is restored and clear them back to the host's configured value.
  • Restore flags from host config rather than a cached effective value.
  • Redact credential-named properties on class instances, including nested values and circular references, while preserving streams and buffers.
  • Add 7 regression tests (12 total in behavior-hardening.test.js) and refresh coverage evidence.
  • Add docs/AI-ASSISTED-WORKFLOWS.md with reusable prompts and approval boundaries, plus a pointer from CONTRIBUTING.md.
  • Tidy release docs and categorise the user-facing fixes under ### Fixed in the 4.1.0 changelog.

Verification

  • npm test — current suite passes; baseline: 174 pass / 55 skipped.
  • npm run test:live:all — 30 passed, 0 failed.
  • npm run check:changelog — changelog OK for 4.1.0.
  • git diff --check — clean.
  • External free-model reviews: primary review found no Critical issues (4 findings, fixed); substitute informational review found 3 follow-ups, fixed. LongCat was unavailable (free quota) and is informational only, not a gate.

Coverage (local, informational)

Node v26.13.0, measured 2026-11-23. Unit tests target lib/, live tests target src/ using the full test/live/ set (npm run test:live:all, same as CI). Coverage is diagnostic only; no coverage dependency or CI gate.

Suite Target Lines Branches Functions
Unit lib/ssh2shell.js 96.98% 90.45% 100%
Unit lib/ssh2shell/defaults.js 97.96% 96.97% 100%
Unit lib/ssh2shell/util.js 97.91% 91.18% 100%
Unit all files 97.07% 90.81% 100%
Combined (unit ∪ live) all files 98.15% — —
Live src/ssh2shell.js 79.42% 56.95% 87.07%
Live src/ssh2shell/defaults.js 97.96% 50.00% 100%
Live src/ssh2shell/util.js 45.55% 36.84% 66.67%
Live all files 77.86% 56.03% 85.71%

Combined line coverage is 2912/2967 executable lines. Residual risk headline: 55 lines missed by both suites.

Full miss-overlap table:

File Executable lines Missed by unit Missed by live Missed by both Live covers unit miss Unit covers live miss
ssh2shell.js 2678 81 551 49 32 502
defaults.js 98 2 2 2 0 0
util.js 191 4 104 4 0 100
all files 2967 87 657 55 32 602

Reproduction commands (from test/coverage.md):

$env:SSH2SHELL_TEST_MODULE = (Resolve-Path 'lib/ssh2shell.js').Path
$unitFiles = Get-ChildItem -Recurse 'test/unit' -Filter '*.test.js' |
  ForEach-Object { $_.FullName } | Sort-Object
node --experimental-test-coverage --test `
  --test-reporter=spec --test-reporter-destination=stdout `
  --test-reporter=lcov --test-reporter-destination="$env:TEMP\unit.lcov" `
  $unitFiles
$env:SSH2SHELL_LIVE_MODULE = (Resolve-Path 'src/ssh2shell.js').Path
$liveFiles = Get-ChildItem 'test/live' -Filter '*.js' |
  ForEach-Object { $_.FullName } | Sort-Object
node --experimental-test-coverage --test --test-concurrency=1 `
  --test-reporter=spec --test-reporter-destination=stdout `
  --test-reporter=lcov --test-reporter-destination="$env:TEMP\live.lcov" `
  $liveFiles

Raw LCOV files are local only. See test/coverage.md for the full analysis and the overlap parser appendix.

Clear the graceful-close timer on primary transitions, restore debug and verbose overrides from host config, and redact credential-named properties on class instances including nested and cyclic values. Add regression tests, refresh coverage evidence, and document AI-assisted workflows and the release fixes.
@cmp-202
cmp-202 merged commit 555219c into master Nov 23, 2026
8 checks passed
@cmp-202
cmp-202 deleted the fix/release-review-findings branch November 23, 2026 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant